package com.fly.snailrun.domain.dto;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

@Data
public class Canvases {
    public Canvases(String id, Integer blur) {
        this.id = id;
        this.blur = (double) blur / 10000;
    }

    @JsonProperty("album_image")
    private String albumImage;
    private Double blur;
    private String color;
    private String id;
    private String image = "";
    @JsonProperty("image_name")
    private String imageName = "";
    @JsonProperty("image_id")
    private String imageId = "";
    @JsonProperty("source_platform")
    private Integer sourcePlatform = 0;
    @JsonProperty("team_id")
    private String teamId = "";
    private String type = "canvas_blur";

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
